package com.novacloud.core;

/**
 * @author <a href="mailto:huzhanjun@novacloud.com">huzj</a>
 * @version 1.0
 * @date 2017/9/22 15:15
 */
public enum ResultCode {
    SUCCESS(200, "操作成功"), //成功
    FAIL(400, "操作失败"),//失败
    UNAUTHORIZED(401, "授权失败"),//未认证（签名错误）
    NOT_FOUND(404, "接口不存在"),//接口不存在
    INTERNAL_SERVER_ERROR(500, "服务器错误");//服务器内部错误

    public int code;
    public String message;

    ResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
